package com.bwie.controller;

import com.bwie.service.TbDictService;
import com.bwie.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 小薛超人
 * @version 1.0
 * @description: TODO
 * @date 2025/7/22 16:30
 */
@RestController
@RequestMapping("/prod/dict")
@Api(tags = "字典操作")
public class DictController {
    @Autowired
    TbDictService tbDictService;

    @PostMapping("/getDictList/{typeId}")
    @ApiOperation(value = "字典表")
    public R getDictList(@PathVariable("typeId") Integer typeId){
        return tbDictService.getDictList(typeId);
    }
}
